<?php
?>
<form action="index.php?r=login/login" method="post">
用户名<input type="text" name="user[username]" value=''>
<br></br>
密	码     <input id="password" type="password" name="user[password]" value=''>
<br></br>
<input  type="submit" value="submit" onclick="mdencryption();">
</form>
<a href="index.php?r=main/index">return</a> to the login page
<script type="text/javascript" src="<?=Yii::app()->baseUrl?>/js/front/md5.js"></script>
<script type="text/javascript">
function mdencryption(){
	$pass = document.getElementById('password');
 	$hash = hex_md5($pass.value);
 	$pass.value = $hash;
}
</script>